<?php
include "conexao.php";

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SubCategoria</title>
<style type="text/css">
<!--
.style1 {
	font-size: 18px;
	font-weight: bold;
}
-->
</style>
</head>

<body>
<div class="tbglobal">
<div id="titulo">Lista de Classificações</div>
<div id="tabela">
<table border="0" cellpadding="0" cellspacing="0" align="center">
      <tr class="yellow">
        <td><div align="center"><strong>Classificacao</strong></div></td>
        <td><div align="center"><strong>ID Pai</strong></div></td>
        <td colspan="2"><div align="center">Ação</div></td>
      </tr>
      <?php 
	  $sql = "select * from classificacao order by descricao";
	  $resultado = mysql_query($sql);
		while ($coluna = mysql_fetch_array($resultado)) { ?>
      <tr>
        <td width="42%"><?php echo $coluna["descricao"] ?> </td>
        <td width="37%"><?php echo $coluna["idpai"] ?></td>
        <td width="9%"><a href="principal.php?link=19&amp;acao=Alterar&amp;id= <?php echo $coluna["idclassificacao"]; ?>" >
          <div align="center"><img src="imagens/lapis.gif" width="20" height="20" border = "0"/></div>
        </a></td>
        <td width="12%"><a href="principal.php?link=19&amp;acao=Excluir&amp;id= <?php echo $coluna["idclassificacao"]; ?>" >
          <div align="center"><img src="imagens/x.gif" width="20" height="20" border="0" /></div>
        </a></td>
      </tr>
      <?php } ?>
      <tr>
        <td colspan="4"><div align="right"><a href="principal.php?link=19"><img src="imagens/inserir.gif" width="44" height="39" border="0" /></a></div></td>
      </tr>
</table>
  </div>  
 </div>


</body>
</html>
